/*
 * GuudMap.h
 *
 *  Created on: 2013-1-28
 *      Author: heqiu
 */

#ifndef GUUDMAP_H_
#define GUUDMAP_H_

#include "GuudBitSet.h"
#include "GuudCanvas.h"
#include "GuudBuilding.h"

namespace guud {
typedef GuudBuilding * GuudBuildingPtr;
class GuudMap: public GuudCanvas {
public:
	GuudMap(uint32_t uiShortUnit, uint32_t uiLongUnit, uint32_t uiUnitPixel);
	virtual ~GuudMap();

	//获取坐标位置建筑
	GuudBuildingPtr getBuilding(uint32_t uiXUnit, uint32_t uiYUnit);
	//检测是否可以建筑
	bool testBuilding(GuudBuilding & stNode);
	//在地图上建筑
	bool setBuilding(GuudBuilding & stNode);
private:
	GuudBuildingPtr * m_pBuilding;
	GuudBitSet m_bitSetWay;
	GuudMap(const GuudMap & obj);
};

}

#endif /* GUUDMAP_H_ */
